<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use App\Exports\CustomerExport;

Route::get('/',function (){
   //$user=\App\User::find(669);
   // return redirect('admin');
   $hangye= \App\model\customer\CustomerWuye::pluck('name')->toArray();

  $hangye=implode(',',$hangye);
  return  $hangye;
 return   \Maatwebsite\Excel\Facades\Excel::download(new CustomerExport(), 'invoices.xlsx');


 // return $user->notify(new \App\Notifications\WechatNotification(\App\model\customer\Customer::first()));
});
